package com.example.recuitactivity.helper;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class TimeHelper {
    private static TimeHelper timeHelper=null;
    public TimeHelper(){}
    public static TimeHelper getInstance(){
        if(timeHelper==null){
            timeHelper=new TimeHelper();
        }
        return timeHelper;
    }

    public String getCurrentTime() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(System.currentTimeMillis());
    }
}
